import http from '../utils/http'

const api = {
  getWord: query => {
    return http.get('word', query)
  },
  getOpenid: code => {
    return http.get('getOpenid?code=' + code)
  },
  getColorRank: openid => {
    return http.get('color/rank?openid=' + openid)
  },
  uploadColorScore: data => {
    return http.post('color/score', data)
  }
}

export default api